package com.mingqijia.gassafety.db.mapper;

import com.mingqijia.gassafety.db.entity.Organization;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 组织层级关系 Mapper 接口
 * </p>
 *
 * @author li.shiying
 * @since 2023-07-24
 */
@Mapper
@Repository
public interface OrganizationMapper extends BaseMapper<Organization> {

    List<Organization> getList(@Param("spId") String spId);

    List<Organization> getParentIdBySpid(@Param("spId")String spId);

    List<String> getChildList(@Param("spId") String spId);

}
